﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="FrModTarea.aspx.cs" Inherits="Tarea_FrModTarea" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1>Administrar Tarea</h1>
<br />
<a href = "FrListarTareas.aspx" >Volver a Tareas</a>
<br />
    <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server" />
     <table style="width:100%;">
    <tr>
    <td>       
        <asp:Button ID="ButtonModficar" runat="server" Text="Modificar" 
            CssClass="button" onclick="ButtonModficar_Click" />
            
    &nbsp;       
        <asp:Button ID="ButtonEliminar" runat="server" Text="Eliminar" 
            CssClass="button" onclick="ButtonEliminar_Click"  />
            
            
            
        
    &nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
                <asp:Label ID="LabelConfirmacion" runat="server" 
                    Text="Esta seguro que desea eliminar esta tarea ?" Font-Size="10pt" 
                    ForeColor="#0066FF"></asp:Label>
                
                &nbsp;<asp:Button ID="ButtonSi" runat="server" Text="Si" CssClass="button" 
                    Height="26px" Width="30px" onclick="ButtonSi_Click" />
                &nbsp;<asp:Button ID="ButtonNo" runat="server" Text="No" CssClass="button"  Height="26px" 
                    Width="30px" onclick="ButtonNo_Click" />
                
                </ContentTemplate>
               <Triggers>
                <asp:AsyncPostBackTrigger ControlID = "ButtonEliminar" EventName = "Click" />
               </Triggers>
            </asp:UpdatePanel>
        </td>
    </tr>
    </table>
    
       
    
        <table style="width:100%;">
            <tr>
                <td>
                    Nombre</td>
                <td>
                    <asp:TextBox ID="TextBoxNombre" runat="server" Width="334px"></asp:TextBox>
                    <br /><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="Este campo es obligatorio" ControlToValidate="TextBoxNombre"></asp:RequiredFieldValidator>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Descripción</td>
                <td colspan ="2">
                    <asp:TextBox ID="TextBoxDescripcion" TextMode="MultiLine" runat="server" Height="66px" Width="452px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>Archivo</td>
            
            <td>
                <asp:DropDownList ID="DropDownListArchivos" runat="server" 
                    DataSourceID="Sqlarchivos" DataTextField="nombre" DataValueField="idArchivo">
                </asp:DropDownList>
                <asp:SqlDataSource ID="Sqlarchivos" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:BDSUEConnectionString1 %>" 
                    SelectCommand="SELECT [idArchivo], [nombre] FROM [Archivo] where tipo = 'formatos' ">
                </asp:SqlDataSource>
                </td>
            </tr>
            
        </table>
        <table style="width: 100%;">
        <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                    Fecha Inicio</td>
                <td>
                    Fecha límite</td>
            </tr>
                    <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                
    
            
    <asp:Calendar ID="CalendarFechaInicio"  
                             runat="server" Height="180px" Width="60px" 
        BackColor="White" BorderColor="White" CellPadding="0" 
        DayNameFormat="FirstTwoLetters" Font-Names="Arial" Font-Size="8pt" 
        ForeColor="#0066FF" FirstDayOfWeek="Monday" UseAccessibleHeader="False" 
                        ondayrender="CalendarFechaInicio_DayRender" >
        <SelectedDayStyle BackColor="#0066FF" Font-Bold="True" ForeColor="White" />
        <SelectorStyle BackColor="#CCCCCC" />
        <WeekendDayStyle BackColor="#FFFFCC" />
        <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
        <NextPrevStyle VerticalAlign="Bottom" />
        <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" 
            Width="10px" />
        <TitleStyle BackColor="#CCCCCC" BorderColor="#0066FF" Font-Bold="True" />
    </asp:Calendar>
    </ContentTemplate>
    
                        </asp:UpdatePanel>
                </td>
                <td>
               
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>
                
    
            
    <asp:Calendar ID="CalendarFechaLimite"  
                             runat="server" Height="180px" Width="60px" 
        BackColor="White" BorderColor="White" CellPadding="0" 
        DayNameFormat="FirstTwoLetters" Font-Names="Arial" Font-Size="8pt" 
        ForeColor="#0066FF" FirstDayOfWeek="Monday" UseAccessibleHeader="False" 
                        ondayrender="CalendarFechaInicio_DayRender" >
        <SelectedDayStyle BackColor="#0066FF" Font-Bold="True" ForeColor="White" />
        <SelectorStyle BackColor="#CCCCCC" />
        <WeekendDayStyle BackColor="#FFFFCC" />
        <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
        <NextPrevStyle VerticalAlign="Bottom" />
        <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" 
            Width="10px" />
        <TitleStyle BackColor="#CCCCCC" BorderColor="#0066FF" Font-Bold="True" />
    </asp:Calendar>
    </ContentTemplate>
   
                        </asp:UpdatePanel>
                    
                </td>
            </tr>
            
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                    <asp:Button ID="ButtonRegistrar" runat="server" Text="Guardar" 
                        CssClass="button" onclick="ButtonRegistrar_Click" />
                    &nbsp;&nbsp;&nbsp;
                    <asp:Button ID="ButtonCancelar" runat="server" Text="Cancelar" 
                        CssClass="button" onclick="ButtonCancelar_Click" />
                </td>
            </tr>
        </table>
    
    
    
  
    
    
    
    </form>

</asp:Content>

